<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
 <input type="hidden" name="organizations/organization[0]/sequence_no" value="1" >
<input type="hidden" name="organizations/organization[0]@submit_org" value="1" >
<input type="hidden" name="organizations/organization[0]/org_code" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
<div class="t_bar">${param.title }</div>

<table class="t_css table01" width="100%" border="0" cellpadding="0"
	id="orgInfo" cellspacing="1">
	<col style="width:12%"/>
	<col style="width:13%"/>
	<col style="width:12%"/>
	<col style="width:13%"/>
	<col style="width:12%"/>
	<col style="width:13%"/>
	<col style="width:12%"/>
	<col style="width:13%"/>
	<tr  class="li_1">
		<td align="right" nowrap>依托单位名称：</td>
		<td colspan="7"><span name="organizations/organization[0]/org_name"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_name" />
		    </span>
		</td>
	</tr>
	<tr  class="li_2">
		<td  align="right" nowrap>单位地址：</td>
		<td colspan="7"> <span name="organizations/organization/address">
				<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/address" />
		    </span>
		</td>
	</tr>
	<tr  class="li_1">
		<td align="right" >组织机构代码：</td>
		<td colspan="3">
		    <span name="organizations/organization[0]/org_no"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/org_no" /> 
		    </span>
		</td>
		<td align="right">邮政编码：</td>
		<td  colspan="3">
		    <span name="organizations/organization[0]/zip_code"> 
			    <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/zip_code" /> 
		    </span>
		</td>
	</tr>
	<tr class="li_2">
            <td align="right">开户银行：</td>
            <td align="left" colspan="3">
               <span name="org_basic_info/bank_name">
		            <x:out select="$xmlData/data/org_basic_info/bank_name" />
		       </span>
            </td>
            <td align="right">信用等级：</td>
            <td align="left" colspan="3">
               <span name="org_basic_info/credit_level">
		            <x:out select="$xmlData/data/org_basic_info/credit_level" />
		       </span>
            </td>
      </tr>
      <tr class="li_1" >
            <td align="right">开户户名：</td>
            <td align="left" colspan="3"> 
                <span name="org_basic_info/bank_orgname" >
		            <x:out select="$xmlData/data/org_basic_info/bank_orgname" />
		        </span>
            </td> 
            <td align="right">银行账号：</td>
            <td align="left" colspan="3">
                <span name="org_basic_info/bank_account" >
		            <x:out select="$xmlData/data/org_basic_info/bank_account" />
		        </span>
            </td>          
      </tr> 
 <%--  <tr  class="li_2">
		<td align="right">联系人电话：</td>
		<td  colspan="3">
          <span name="proposal/org_contact_tel"><x:out
					select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel" />
		    </span>
		</td>
		<td align="right">电子邮箱：</td>
		<td  colspan="3">
		    <span name="proposal/org_contact_email"><x:out
					select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email" />
		    </span>
		</td>
	</tr>	  --%>
	<tr  class="li_2">
		<td align="right">传真：</td>
		<td  colspan="3">
		  <span name="organizations/organization[0]/fax" ><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/fax" /></span>
           <%-- <c:set var="org_fax"><x:out select="$xmlData/data/organizations/organization/fax" /> </c:set>
           <c:if test="${empty org_fax }"><c:set var="org_fax"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/fax" /></c:set></c:if>
		   <input class="required input_css" type="text" onchange="value=value.replace(/[^0-9-]/ig,'')" onkeyup="value=value.replace(/[^0-9-]/ig,'')" maxlength="50" value="${org_fax }" label="${param.title }-->传真" name="organizations/organization[0]/fax"/> --%>
		</td>
		<td align="right">网站地址：</td>
		<td  colspan="3">
		   <%--  <c:set var="http"><x:out select="$xmlData/data/organizations/organization/http" /> </c:set>
           <c:if test="${empty http }"><c:set var="http"><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/http" /></c:set></c:if>
		   <input class="required input_css" type="text"  maxlength="50" value="${http }" label="${param.title }-->网站地址" name="organizations/organization[0]/http"/> --%>
		    <span name="organizations/organization[0]/http" ><x:out select="$xmlData/data/organizations/organization[@submit_org='1']/http" /></span>
		</td>
	</tr>
	
	<tr  class="li_1">
		
		<td align="right">注册类型：</td>
		<td  colspan="3">
		    <span name="organizations/organization[0]/nature_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_name" />
		    </span>
		    <input  type="hidden"   value="<x:out select="$xmlData/data/organizations/organization[@submit_org='1']/nature_value" />" label="${param.title }-->注册类型" name="organizations/organization[0]/nature_value"/>
		</td>
		<td align="right">单位特性：</td>
		<td  colspan="3">
		   <span name="organizations/organization[0]/chk_characteristic_name">
		       <x:out select="$xmlData/data/organizations/organization[@submit_org='1']/chk_characteristic_name" />
		    </span>
		</td>
	</tr>
	
	
	
	
	
	<tr  class="li_2">
	<td align="right"><span class="color_red">*</span>单位属性：</td>
	<td nowrap  colspan="7" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="unit_character" label="科研机构" value="01" onclick="showText(this);"/><span style="vertical-align: middle;">科研机构</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="unit_character" label="高等学校" value="02" onclick="showText(this);"/><span style="vertical-align: middle;">高等学校</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="unit_character" label="检测机构" value="03" onclick="showText(this);"/><span style="vertical-align: middle;">检测机构</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="unit_character" label="医疗机构" value="04" onclick="showText(this);"/><span style="vertical-align: middle;">医疗机构</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="radio" class="do " id="advant_05" style="vertical-align: middle;" name="unit_character" label="企业"  value="05" onclick="showText(this);"/><span style="vertical-align: middle;">企业</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="advant_06" style="vertical-align: middle;" name="unit_character" label="其他" value="06" onclick="showText(this);"/><span style="vertical-align: middle;">其他</span></label>&nbsp; &nbsp; &nbsp;  
	<input type="hidden" name="proposal/unit_character_value" id="unit_character_value" class="required" value="<x:out select="$xmlData/data/proposal/unit_character_value" />" label="${param.title}-->单位属性" /> 
	<input type="hidden" name="proposal/unit_character_name" id="unit_character_name" value="<x:out select="$xmlData/data/proposal/unit_character_name" />" label="${param.title}-->单位属性" />
	<tr>
	 
	 
	 
	 
	<tr id="company_type" style="display:none">
	<td  align="right"><span class="color_red">*</span>企业类型：</td>
	<td colspan="3">
	<label> <input type="radio" class="do " id="unit_character_company1" style="vertical-align: middle;" name="unit_character_company" label="国有控股企业" value="051" class="" /><span style="vertical-align: middle;">国有控股企业</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="radio" class="do " id="unit_character_company2" style="vertical-align: middle;" name="unit_character_company" label="民营企业" value="052" class="" /><span style="vertical-align: middle;">民营企业</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="unit_character_company3" style="vertical-align: middle;" name="unit_character_company" label="其他企业" value="053" class="" /><span style="vertical-align: middle;">其他企业</span></label>&nbsp; &nbsp; &nbsp; 
	<input type="hidden" name="proposal/unit_character_company_value" id="unit_character_company_value" class="" value="<x:out select="$xmlData/data/proposal/unit_character_company_value" />" label="${param.title}-->企业类型" /> 
	<input type="hidden" name="proposal/unit_character_company_name" id="unit_character_company_name" value="<x:out select="$xmlData/data/proposal/unit_character_company_name" />" label="${param.title}-->企业类型" />
	</td>
	

 
  <td nowrap="nowrap" align="right"><span class="color_red">*</span>是否属于转制院所：</td>
  <td nowrap  colspan="3" valign="middle">
	<label> <input type="radio" class="do " id="zhuanzhi_01" style="vertical-align: middle;" name="zhuanzhi" label="是" value="01" /><span style="vertical-align: middle;">是</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="zhuanzhi_02" style="vertical-align: middle;" name="zhuanzhi" label="否" value="02" /><span style="vertical-align: middle;">否</span></label>&nbsp; &nbsp; &nbsp; 
   
  <input type="hidden" name="proposal/zhuanzhi_value" id="zhuanzhi_value" class="" value="<x:out select="$xmlData/data/proposal/zhuanzhi_value" />" label="${param.title}-->是否属于转制院所" /> 
	<input type="hidden" name="proposal/zhuanzhi_name" id="zhuanzhi_name" value="<x:out select="$xmlData/data/proposal/zhuanzhi_name" />" label="${param.title}-->是否属于转制院所" />
  </tr>


   <tr  class="li_1">
	<td align="right"><span class="color_red">*</span>法人性质：</td>
	<td nowrap  colspan="7" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="faren_character" label="事业法人" value="01" /><span style="vertical-align: middle;">事业法人</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="faren_character" label="企业法人" value="02" /><span style="vertical-align: middle;">企业法人</span></label>&nbsp; &nbsp; &nbsp; 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="faren_character" label="社团法人" value="03" /><span style="vertical-align: middle;">社团法人</span></label>&nbsp; &nbsp; &nbsp;  
	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="faren_character" label="其他" value="04" /><span style="vertical-align: middle;">其他</span></label>&nbsp; &nbsp; &nbsp; 
	<input type="hidden" name="proposal/faren_character_value" id="faren_character_value" class="required" value="<x:out select="$xmlData/data/proposal/faren_character_value" />" label="${param.title}-->法人性质" /> 
	<input type="hidden" name="proposal/faren_character_name" id="faren_character_name" value="<x:out select="$xmlData/data/proposal/faren_character_name" />" label="${param.title}-->法人性质" />
	<tr>
	<tr  class="li_2">
		<td align="right">归口管理部门：</td>
		<td colspan="7">
		    <span name="org_basic_info/department_name">
		       <x:out select="$xmlData/data/proposal/tjbm_org_name" />
		    </span>
		</td>
	</tr>
</table>
<br/>

<table class="t_css table01" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<col style="width:18%"/>
	<col style="width:16%"/>
	<col style="width:16%"/>
	<tr class="li_1">
		<td   colspan="6" class="t_bar2">${param.title1}</td>
		
	</tr>
	<tr class="li_1">
	    <td   align="right" ><span class="color_red">*</span>姓名：</td>
		<td  colspan="2">
			<input  name="proposal/leader_name" label="${param.title1}-->姓名" type="text" required class="required maxlength:100"  style="width: 140px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/leader_name" />"/>
		</td>
		<td align="right"><span class="color_red">*</span>性别：</td>
		<td  colspan="2">
			<c:set var="leader_gender"><x:out select="$xmlData/data/proposal/leader_gender_value" /></c:set>
			<cpt:select id="leader_gender" name="leader_gender" style="width: 140px;" value="${leader_gender }"  key="gender" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" name="proposal/leader_gender_value"  class="required" value="<x:out select="$xmlData/data/proposal/leader_gender_value" />" label="${param.title1}-->性别">
			<input type="hidden" name="proposal/leader_gender_name" value="<x:out select="$xmlData/data/proposal/leader_gender_name" />">
		</td>
	</tr>
	<tr class="li_2">
		<td   align="right" ><span class="color_red">*</span>出生日期：</td>
		<td  colspan="2">
			<input type="hidden" id="nowaday" label="当前日期" value="${sercverSysDate1 }">
			<c:set var="leader_birthday"><x:out select="$xmlData/data/proposal/leader_birthday" /></c:set>
			<cpt:date id="leader_birthday" name="proposal/leader_birthday"  value="${leader_birthday}" className="required date dateCompare:nowaday" label="${param.title1}-->出生日期" ></cpt:date> 
		</td>
		<td   align="right" ><span class="color_red">*</span>学历：</td>
		<td  colspan="2">
			<c:set var="leader_educate"><x:out select="$xmlData/data/proposal/leader_educate_value" /></c:set>
			<cpt:select id="leader_educate"  key="educate" style="width: 140px;" value="${leader_educate }" onChange="initControlValue(this.id);"></cpt:select>
			<input type="hidden" name="proposal/leader_educate_value"  class="required" value="<x:out select="$xmlData/data/proposal/leader_educate_value" />" label="${param.title1}-->学历">
			<input type="hidden" name="proposal/leader_educate_name" value="<x:out select="$xmlData/data/proposal/leader_educate_name" />">
		</td>
	</tr>
	<tr class="li_1">
		<td align="right"><span class="color_red">*</span>职务：</td>
      <td colspan='2' >
       		<input name="proposal/leader_position" type="text" id="position" value="<x:out select='$xmlData/data/proposal/leader_position' />" maxlength="35"  class="required" label="${param.title1}-->职务"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>职称：</td>
			<c:set var="proftitlevalue">{'id':'<x:out select='$xmlData/data/proposal/leader_prof_value' />','name':'<x:out select='$xmlData/data/proposal/leader_prof_name' />'}</c:set>
		<td colspan='2'>
			<cpt:tree key="prof_title" cacheable="false" readonly="true" value="${proftitlevalue}" id="leader_prof" showPattern="all" shieldPattern="-1" onClick="initTreeValueExt2"   label="${param.title1}-->职称" />
			<input type="hidden" name="proposal/leader_prof_value" value="<x:out select='$xmlData/data/proposal/leader_prof_value' />" class="required" label="${param.title1}-->职称" /> 
			<input type="hidden" name="proposal/leader_prof_name" value="<x:out select='$xmlData/data/proposal/leader_prof_name' />" />
		</td>
	</tr>
	<tr class="li_2">
		<td align="right"><span class="color_red">*</span>专业：</td>
      <td colspan='2' >
       		<input name="proposal/leader_major" type="text"   value="<x:out select='$xmlData/data/proposal/leader_major' />" maxlength="35"  class="required" label="${param.title1}-->专业"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>电话：</td>
		<td colspan='2'>
			<input name="proposal/leader_phone" type="text"  value="<x:out select='$xmlData/data/proposal/leader_phone' />" maxlength="35"  class="required" label="${param.title1}-->电话"/>
		</td>
	</tr>
	<tr class="li_1">
		<td align="right"><span class="color_red">*</span>手机：</td>
      <td colspan='2' >
       		<input name="proposal/leader_mobile" type="text"   value="<x:out select='$xmlData/data/proposal/leader_mobile' />" maxlength="11" onfocus="InitInput.setNumber(this,11,0,0)" class="required mobile" label="${param.title1}-->手机"/>
      </td>
		<td align="right" colspan='1'><span class="color_red">*</span>电子邮箱：</td>
		<td colspan='2'>
			<input name="proposal/leader_email" type="text"  value="<x:out select='$xmlData/data/proposal/leader_email' />" maxlength="35"  class="required email" label="${param.title1}-->电子邮箱"/>
		</td>
	</tr>
	</table>
	<br/>
<script type="text/javascript">

function initTreeValueExt2(treeId, treeNode) {

	var inputId = treeId;
	if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
		scmWarn($("#" + treeId).attr("label")
				+ messageTip.researchAreaInvalidDisciplineCode);
		if (treeNode.level == 0) {
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val("");
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val("");
		}
		return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			//str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val(str);
	}

function showText(obj){
	if($(obj).attr("value")=="05"){
		$("#company_type").css("display","");
		$("#unit_character_company_value").addClass("required");
		$("#zhuanzhi_value").addClass("required");
		
		
		
		
	}	
	else{
		$("#company_type").css("display","none");
		$("#unit_character_company1").removeAttr("checked");
		$("#unit_character_company2").removeAttr("checked");
		$("#unit_character_company3").removeAttr("checked");	
		$("#unit_character_company_value").val('');
		$("#unit_character_company_name").val('');
		$("#unit_character_company_value").removeClass("required");

		$("#zhuanzhi_01").removeAttr("checked");
		$("#zhuanzhi_02").removeAttr("checked");
		$("#zhuanzhi_value").val('');
		$("#zhuanzhi_name").val('');
		$("#zhuanzhi_value").removeClass("required");
		
		
	}
}



$(document).ready(function(){
if($("#unit_character_value").val()=="05"){
	$("#company_type").show();
}
	
else{
	$("#company_type").hide();
}
});


</script>





